Better warning for add-key-val-to-alist
authorjustbur <justin@burkett.cc>
Thu, 3 Sep 2015 19:22:16 +0000 (15:22 -0400)
committerjustbur <justin@burkett.cc>
Thu, 3 Sep 2015 19:23:59 +0000 (15:23 -0400)
which-key.el

index d9e7b3a2ffeea05a3f272a96eeb343791cddb7f5..506a95c9a2c042e5e7f25a6f06da5e780eca727a 100644 (file)
@@ -464,9 +464,8 @@ bottom."
   (let ((key-lst (listify-key-sequence (kbd key))))
     (cond ((null alist) (list (cons key-lst value)))
           ((assoc key-lst alist)
-           (message "which-key: the key %s already exists in %s. This addition \
-will override that value."
-                    key alist)
+           (message "which-key: changing %s name from %s to %s"
+                    key (cdr (assoc key-lst alist)) value)
            (setcdr (assoc key-lst alist) value)
            alist)
           (t (cons (cons key-lst value) alist)))))